MoreExam
1. Question Content...
EXPLANATION
Answer: X - EXPLANATION Content.
Question1: Which two items are appropriate content of custom logs implemented at checkout?Choose 2 answers:
Question2: Given the SFRA Controller below:Why would a JavaScript debugger, that is stopped at line 06, fall to show the viewdata variable in the inspectiontool?
Question3: A merchant wants customers to be able to order gift vouchers via their site. Since they can issue an unlimited number of these digital vouchers, this item should be available to sell at all items.How can a developer use Business Manager to ensure that the gift vouchers are always available?
Question4: A Digital Developer is working on a project to convert a pipeline to a JavaScript controller. UX Studio has a functioning pipeline debugger configured for the site. Assume the Developer will add a breakpoint to the controller when it is written.What must be done in order to use the debugger with the new controller when it is written?
Question5: A Digital Developer creates a B2C Commerce server connection in their UX Studio workspace. The Developer adds new cartridges to the workspace, but the cartridges do NOT execute as the Developer expects.Which three things should the Digital Developer verify to ensure the cartridges are uploaded? (Choose three.)
Question6: Once the Cache Information tool of the storefront toolkit is enabled, how can a Digital Developer view caching information for a particular component of the page?
Question7: A Digital Developer needs to add a new form to the shopping cart page to allow customers to enter their rewards pass ID. There is already an existing Cart.js controller that handles processing of the other cart forms.In addition, a formfield node is in the form XML and the necessary form input is present in the ISML template.The code below is the submit button for the ISML markup.What additional steps must occur before the Digital Developer can begin writing the processing code forthis request?
Question8: A developer needs to display a products list of their "Women Dresses" category in a new web application, independent of their main B2C Commerce site. This custom listing page needs to be styled differently from the existing one, as per marketing requirements.Which B2C Commerce tool should the developer use to collect the necessary information?
Question9: A Newsletter controller contains the following route:Server.post('Subscribe', function (req,res,next){var newsletterForm = server.forms.getForm('newsletter');var CustomObjectMgr = require('dw/object/CustomObjectMgr'); if(newsletterForm.valid){ try{ var CustomObject = CustomObjectMgr.createCustomObejct('NewsletterSubscription', newsletterform.email.value); CustomObject.custom.firstName = newsletterForm.fname.value; CustomObject.custom.lastName = newsletterForm.lname.value;-} catch(e){//Catch error here}}next();});Assuming the Custom Object metadata exists, why does this route fail to render the newsletter template when the subscription form is correctly submitted?
Question10: Giventhe file structure below, which ISML method call renders the customLandingPage template?
Question11: A Digital Developer needs to store information temporarily and decides to create a custom object.Which code creates a custom object?
Question12: A Storefront is designed so that multiple pages share a common header and footer layout.Which ISML tag should a developer use on the templates for these pages to avoid code repetition in the most effective way?
Question13: A merchant is selling a new product line of televisions. In order to deliver a good customer experience, the merchandising team wants the screen size to be incorporated into the search and navigation journey.Which two things can the developer do to facilitate this for them?Choose 2 answers
Question14: A developer is asked to improve the maintainability of a page by reducing its code repetition.What are two techniques the developer should implement to achieve this?Choose 2 answers.
Question15: A merchant has reported that customers are seeing low stock items at the top of their search results, giving them a subpar customer experience and impacting conversion.How might this issue be resolved to ensure a better customer journey?
Question16: A Digital Developer suspects a logical error in a script.Which action will help locate the error?
Question17: The following sample code is NOT providing the desired results. The Digital Developer needs to add an entry to the logs to debug the problem.Which statement correctly adds a log entry?
Question18: A Digital Developer adds the following line of code to a script.The code executes without error;however, the log file on disk does NOT contain the log message.Which two actions should be completed to write the log message to disk? (Choose two.)
Question19: A developer needs to render a Page Designer page in JSON format. What is the correct syntax?
Question20: Universal Containers wants to associate a region code value with an order to indicate the general area of its destination. This region code must be accessible whenever the order history is displayed.What is required to accomplish this?
Question21: Universal Containers has expanded its implementation to support German with a locale code of de. The current resource bundle is checkout.properties.To which file should the developer add German string values?
Question22: Given the requirements:* To integrate with an external web service using HTTP requests* To create a service for this purpose with the Service framework using the LocalServiceRegistry class.* To test the servicebefore the external service provider makes the API available Which solution allows the developer to satisfy the requirements?
Question23: A Digital Developer is working in a sandbox on a site named test-site using the domain test.demandware.net.The Developer needs to compile a url to make an Open Commerce API (OCAPI) request that returns product information.By default, which URL format is a proper Open Commerce API for Sandbox?
Question24: A developer is importing edits for two different sites into the same sandbox, and is provided with four different files.Which two XML files should the developer import using the site-specific Merchant Tools import modules, instead of the Administration section import modules?Choose 2 answers.
Question25: A client that sells to multiple countries in Europe needs to disable Apple Pay for Denmark.Which Business Manager module is used to achieve this requirement?
Question26: Universal Containers needs to have Apple Pay disabled for the country of Spain.Which Business Manager module should the Developer use to meet this requirement?
Question27: Universal Containers created a site export file from staging in the global export directory.How should the Digital Developer update their sandbox using this staging site export file?
Question28: A Digital Developer wants pass control to an ISML template from a JavaScript Controller and load product on the pipeline dictionary with the name myProduct.Which code sample will achieve this?
Question29: A merchant asks a developer to create a Cache Partition for the home page, so that when the home page is edited, only the home page is cleaned.Given the above requirement, where should the developer create that partition in Business Manager?
Question30: The Home-Show route uses this middleware chain:The developer added Home.;s in another cartridge, which is before the original cartridge in the cartridge path, to extend that route but it does not have the middleware chain:Assuming the code is correct on both functions, what is the expected result?
Question31: Universal Containers calls the following combination of products "The Basics" and sells the combination as a unique product ID:* One Model 103 container* Five Model 611 container* Tree Model 201 containerThe Developer created these three products in the catalog.What is the next step in Business Manager to create "The Basics" as a combination?
Question32: Universal Containers recently completed updates to their storefront shoppingcart page. A problem has been discovered since the update. Users are no longer able to submit coupon codes on this page. Additionally, authenticated users who try to add a coupon are logged out.The following processing code is found in the Cart.js controller file:What should the Developer verify to identify the issue?
Question33: Universal Containers wants to give customers the ability to refine product search results by a product custom attribute, weightCapacity.Which series of steps should a Digital Developer take to show this refinement on the storefront?
Question34: A Digital Developer must resolve a performance issue with product tiles. The Developer determines that the product tiles are NOT being cached for a long enough period.Which two methods can the Developer use to verify the cache settings for the product tiles? (Choose two.)
Question35: A Digital Developer is asked to optimize controller performance by lazy loading scripts as needed instead of loading all scripts at the start of the code execution.Which statement should the Developer use to lazy load scripts?
Question36: A developer set up a new site with Taxation: Net. However, the business requirements changed and the site now needs to be Taxation:Gross. The Business Manager interface does not give this option.Which sequence of steps is necessary to change the site to gross taxation?
Question37: A Digital Developer is inspecting the weekly service status report for a critical internally-hosted web service used in the application and notices that there are too many instances of unavailability.Which two solutions are possible options to reduce the unavailability of the service? (Choose two.)
Question38: A developer is implementing new Page Designer content on a merchant's Storefront and adds the line below toWhat does this achieve?
Question39: A developer wants to create in Business Manager extension with the cartridge named plugin_vm_extension.Which two steps should the developer take for the extension option to show up in Business Manager?Choose 2 answers:
Question40: Given the requirements:* To show the washing instructions for a clothing product on a dedicated section the detail page* Washing instructions come from the product information manager(PIM)* To have this attribute available to localize in the Storefront.Which action meets these requirements?
Question41: A developer has a requirement to display a banner in two different category pages.Which snippet of code should the developer add to a template to allow the merchant to configure each independently?A)B)C)
Question42: A merchant has asked their development team to add a new site.Which two tasks are essential for correct site configuration prior to launch?Choose 2 answers
Question43: Given the following conditions:* Site export file with a copy of the Storefront data for a custom site* Sandbox with the custom site code, but no Storefront data* Requirement for a working copy of SFRA for development referenceA developer is assigned the following Business manager tasks:* A. Import the custom Site using Site Import/Export* B. Import the SFRA Demo Sites using Site Import/Export* C. Rebuild the custom Site search indexesIn what sequence should the developer perform the tasks, so that the custom Site displays the products as intended?
Question44: In order to implement site custom functionality, a developer creates a new cartridge.Which step should the developer take to ensure their cartridge changes take effect?
Question45: A client has a requirement to allow users on the Storefornt to filter by a newly createdattribute.Which is necessary to achieve this?
Question46: Which code sample is required to use a custom tag provided in SiteGenesis inan ISML template?
Question47: A client wants to differentiate their monobrand stores with a special icon when shown in the store locator. The information is saved in a true/false custom attribute for each Store object in Merchant tools.How should the developer follow SFRA best practices to expose this data for rendering?
Question48: Given the requirements:* To show thewashing Instructions for a clothing product on a dedicated section the detail page* Washing instructions come from the product Information manager (PIM)* To have this attribute available to localize in the StorefrontWhich action must these requirements?
Question49: A Digital Developer added a file named MyBusinessController.js in the cartridge named app_project. The project design calls for this new file to override MyBusinessController.js in client_project. The client_project cartridge contains other necessary functionality. Additional functionality is also included in the storefront_core and storefront_controllers cartridges.Which cartridge path meets the project requirements?
Question50: A developer is asked to write a log containing the ID and name of the product with a variable named myProduct.Which snippet of code should be used?
Question51: Which method is efficient and scalable because it uses the product search index rather than searching the database?
Question52: A developer has configured the following log levels for categories & sub categories as WARN logging is enabled for 'product' and DEBUG for "product.import" What will be the log level used forvarious categories and sub-categories?
Question53: A developer must configure permissions for an Open Commerce API resource on a sandbox instance that currently does not have any permissions configured.Which two configuration properties are required to enable Access to the resource?Choose 2 answers
Question54: Recent code changes to an existing cartridge do not appear correctly on a Storefront. The developer confirms that the code is uploaded in the IDE and ensures that the cartridge is associated with the sandbox.Which two additional steps should the developer take to troubleshoot this problem?Choose 2 answers
Question55: A Digital Developer has been given a requirement to add fault tolerance to an existing web service integration that uses Service Framework. Administrators at Universal Containers need to be able to configure the timeout and rate limiting.Which approach should the Developer use to implement the requirement?
Question56: A merchant has a requirement to sell a combination of four existing products with a unique product ID.This collection will be known as 'Our Top Combo', and is base don the merchant's trading information that shows this combination to be in high demand.What does the developer need to do next to fulfill this requirement?
Question57: A client has two B2C Commerce sites in the same instance: one for the U.S. market, the other for the European market. They offer free gift wrapping on a selection of products. For each order, five products can be wrapped in theU.S., but only three products can be wrapped in the European region.How should a developer allow the merchant to independently adjust this number?
Question58: Which line of code creates a content slot that can be included on homepage.isml to display on the home page?
Question59: A Digital Developer is requesting product information for an external integration. The following Open Commerce API (OCAPI) request is NOT functioning correctly:How should the Developer change the request?
Question60: Given a file in a plug-in cartridge with the following code:'use strict':Var base = module.superModule;Function applyCustomCache (req,res,next){res.CachePeriod = 6; //eslint-disable-line no-param-reassignres.cachePeriodUnit = 'hours') //eslint-disable-line no-param-reassignnext();}Module.exports = base;Module.exports.applyCustomCache = applyCustomCache;What does this code extend?
Question61: A developer needs to check for product inventory in all inventory lists using the Open Commerce API.An example request URL is:Which properly should the developer check in the OCAPI settings to confirm the appropriate resource is enabled?